package com.operation.net.service.impl;


import com.operation.net.mapper.DeviceViewMapper;
import com.operation.net.model.InterFlow;
import com.operation.net.model.Interface;
import com.operation.net.model.SystemInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class DeviceViewServiceImpl {
    @Autowired
    private DeviceViewMapper deviceViewMapper;


    public List<SystemInfo> getDevices() {
        return deviceViewMapper.getDevice();
    }

    public List<Interface> getInfaceInfo(String ip) {
        return deviceViewMapper.selectInterfaceByIp(ip);
    }

    public List<InterFlow> getInfaceflow(String ip, String interDescr) {
        return deviceViewMapper.selectInterfaceflowByInter(ip,interDescr);
    }

    public List<Interface> getInfaceInfoFilterEmptydata(String ip) {
        return deviceViewMapper.selectInfaceInfoFilterEmptydata(ip);
    }

    public List<InterFlow> getAllInfaceflow(String ip) {
        return deviceViewMapper.selecAllInfaceFlow(ip);
    }


    }

